package com.parse.ui;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;

public class SumitDiaglog {
	private static AlertDialog alertDialog;

	private SumitDiaglog() {

	}

	public static AlertDialog instance(DialogMessage message, Activity activity) {

		if (alertDialog == null) {
			final Builder builder = new Builder(activity);
			builder.setCancelable(false);
			builder.setTitle(message.getTitle());
			builder.setMessage(message.getMessage());
			alertDialog = builder.create();

		} else {

		}
		return alertDialog;

	}
}
